+Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * docs/tools/widgets.c (create_icon_view): load images at normal
+ size.
+
+ * docs/reference/gtk/images/*png: Update shots.
+
Thu Sep 16 00:33:11 2004 Jonathan Blandford <jrb@gnome.org>
* docs/tools/widgets.c (new_widget_info): Add constrained sizing
+Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * docs/tools/widgets.c (create_icon_view): load images at normal
+ size.
+
+ * docs/reference/gtk/images/*png: Update shots.
+
Thu Sep 16 00:33:11 2004 Jonathan Blandford <jrb@gnome.org>
* docs/tools/widgets.c (new_widget_info): Add constrained sizing
+Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * docs/tools/widgets.c (create_icon_view): load images at normal
+ size.
+
+ * docs/reference/gtk/images/*png: Update shots.
+
Thu Sep 16 00:33:11 2004 Jonathan Blandford <jrb@gnome.org>
* docs/tools/widgets.c (new_widget_info): Add constrained sizing
+Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * docs/tools/widgets.c (create_icon_view): load images at normal
+ size.
+
+ * docs/reference/gtk/images/*png: Update shots.
+
Thu Sep 16 00:33:11 2004 Jonathan Blandford <jrb@gnome.org>
* docs/tools/widgets.c (new_widget_info): Add constrained sizing
@filename:
@width:
@height:
-@keep_aspect_ratio:
+@preserve_aspect_ratio:
@error:
@Returns:
+<!-- # Unused Parameters # -->
+@keep_aspect_ratio:
<!-- ##### FUNCTION gdk_pixbuf_get_file_info ##### -->
@owner: the new owner of the selection
@reason: the reason for the ownership change as a #GdkOwnerChange value
@selection: the atom identifying the selection
-@time: the timestamp of the event
+@time: the timestamp of the event
@selection_time: the time at which the selection ownership was taken over
<!-- ##### ENUM GdkScrollDirection ##### -->
@GDK_OWNER_CHANGE_NEW_OWNER: some other app claimed the ownership
@GDK_OWNER_CHANGE_DESTROY: the window was destroyed
@GDK_OWNER_CHANGE_CLOSE: the client was closed
+
make sense to gray out or hide the corresponding UI widget.
</para>
-@cmap: a #GdkColormap
+@cmap: a #GdkColormap
@Returns: %TRUE if the visual associated with @cmap is ditherable.
@y_offset:
+<!-- ##### FUNCTION gdk_window_enable_synchronized_configure ##### -->
+<para>
+
+</para>
+
+@window:
+
+
+<!-- ##### FUNCTION gdk_window_configure_finished ##### -->
+<para>
+
+</para>
+
+@window:
+
+
<!-- ##### FUNCTION gdk_window_set_user_data ##### -->
<para>
--- /dev/null
+The doc shooter is used to take screenshots of widgets for the GTK+
+reference manuals. We use these images for both the headers of the
+images, and for the visual index of GNOME images. They aren't part of
+the docs build. Instead, the images are taken, and then copied by hand
+into gtk+/docs/reference/gtk/images/
+
+Ideally, the images should be taken once a release, and all images
+should be updated at the same time. A simple theme should be used to
+take the screenshots, and in the future, we may include a gtkrc file in
+this directory for the shooter to use. Currently, all shots are
+constrained to the same width. Care should be taken when adding new
+widgets to keep this constraint.
+
gtk_frame_set_shadow_type (GTK_FRAME (widget), GTK_SHADOW_IN);
list_store = gtk_list_store_new (2, G_TYPE_STRING, GDK_TYPE_PIXBUF);
gtk_list_store_append (list_store, &iter);
- pixbuf = gdk_pixbuf_new_from_file_at_size ("gnome-gmush.png", 20, 20, NULL);
+ pixbuf = gdk_pixbuf_new_from_file ("gnome-gmush.png", NULL);
gtk_list_store_set (list_store, &iter, 0, "One", 1, pixbuf, -1);
gtk_list_store_append (list_store, &iter);
- pixbuf = gdk_pixbuf_new_from_file_at_size ("gnome-foot.png", 20, 20, NULL);
+ pixbuf = gdk_pixbuf_new_from_file ("gnome-foot.png", NULL);
gtk_list_store_set (list_store, &iter, 0, "Two", 1, pixbuf, -1);
icon_view = gtk_icon_view_new();
{
*x_offset = ((gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) ?
(1.0 - cell->xalign) : cell->xalign) * (cell_area->width - rect.width - (2 * cell->xpad));
+ if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
+ *x_offset -= rect.width;
+ if (celltext->text && !strcmp ("Makefile", celltext->text))
+ g_print ("x_offset: %d %d %d\n", cell_area->width, *x_offset, rect.width);
*x_offset = MAX (*x_offset, 0);
}
if (y_offset)
else
pango_layout_set_width (layout, -1);
+ if (celltext->text && !strcmp ("Makefile", celltext->text))
+ g_print ("render: %d %d %d\n", cell_area->x, cell_area->width, cell_area->x + x_offset + cell->xpad);
gtk_paint_layout (widget->style,
window,
state,
cell_area->x + x_offset + cell->xpad,
cell_area->y + y_offset + cell->ypad,
layout);
+ gdk_draw_line (window, widget->style->black_gc,
+ cell_area->x + x_offset + cell->xpad,
+ cell_area->y + y_offset + cell->ypad,
+ cell_area->x + x_offset + cell->xpad,
+ cell_area->y + y_offset + cell->ypad + 20);
+
g_object_unref (layout);
}